/*
 * @Author: jiu yin
 * @Date: 2023-11-13 15:50:42
 * @LastEditTime: 2023-12-25 16:23:16
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \association-admin\src\utils\enum.js
 * jiu
 */
import React, { useState, useEffect } from "react";

import {
  AndroidOutlined,
  AppleOutlined,
  WindowsOutlined,
  CodepenOutlined,
} from "@ant-design/icons";

export let platform_arr = [
  {
    label: "Android",
    value: 1,
    icon: React.createElement(AndroidOutlined)
  },
  {
    label: "Ios",
    value: 2,
    icon: React.createElement(AppleOutlined)
  },
  {
    label: "Windows",
    value: 3,
    icon: React.createElement(WindowsOutlined)
  },
  {
    label: "Webgl",
    value: 4,
    icon: React.createElement(CodepenOutlined)
  },
];

export let platform_str = (value = 1) => {
  return platform_arr.find(item => item.value == value)?.label;
};

export let resource_type_obj = {
  101: 101,//"android/bundle",”美术公共依赖“
  121: 121,//"android/bundle",“美术场景”
  131: 131,//"android/bundle",”美术角色-头部基模“
  132: 132,// "android/bundle",“美术角色-服装基模”
  133: 133,//"android/bundle",”美术角色-服装贴图“
  134: 134,//"android/bundle",“美术角色-头发”
  135: 135,//"android/bundle",”美术角色-眼镜“
  201: 201,//"android/audio",”美术音效“
  301: 301,//"android/bundle",“热更场景”
  302: 302,// "android/data",”热更代码“
  401: 401,//"android/bundle","配置-试衣间"
  0: 0,//"android/common","其他"
};
export let colors_register = [
   {
      color: "#2A6BFB",
      name: "1",
   },
   {
      color: "#9E69E6",
      name: "2",
   },
   {
      color: "#2AC9B9",
      name: "3",
   },
   {
      color: "#F65267",
      name: "4",
   },
   {
      color: "#F8C235",
      name: "5",
   },
];